import 'antd/dist/reset.css'
import '@/assets/iconfont/iconfont.css'
import './App.scss'
import { Router, Redirect, Route, Switch } from 'react-router-dom'
import Login from '@/pages/Login'
import IHRMLayout from '@/pages/Layout'
import NotFound from '@/pages/NotFound'
import { customHistory } from './utils/history'
const App = () => {
  return (
    <Router history={customHistory}>
      <Switch>
        <Route exact path="/" render={() => <Redirect to="/home" />}></Route>
        <Route path="/home" component={IHRMLayout}></Route>
        <Route path="/login" component={Login}></Route>

        <Route component={NotFound}></Route>
      </Switch>
    </Router>
  )
}

export default App
